<admintpl file="header" />

<body class="J_scroll_fixed">
	<style>
		.col-right {overflow: hidden;margin-left: 6px;}
		.col-auto {overflow: auto;_zoom: 1;_float: left;}
		
		.ss label{display: block;margin-bottom: 5px;float: left;margin-right: 20px;}
		.ssx{float: left;}
	</style>
	<div class="wrap J_check_wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:leuu('Ptxq/IndexAdmin/index')}">平台列表</a></li>
			<li class="active"><a>添加开户银行</a></li>

		</ul>
		<form name="myform" id="myform" action="{:leuu('Ptxq/IndexAdmin/add_pt_yh_fj')}" method="post" class="form-horizontal J_ajaxForms" enctype="multipart/form-data">

			<div class="col-auto">
				<div class="table_full">
					<table class="table table-bordered">
						<tr>
							<th width="100">平台名称 </th>
							<td>
								{$rs.name}
								<input type="hidden" name="pt_id" id="pt_id" value="{$rs.id}" />
							</td>
						</tr>
				
						<foreach name="pt_yh" item="vo">
						  <tr>
							<th width="100">{$vo.name} </th>
							<td width="600">
								<div class="jypt_img">
									<input style="width:400px;" type="text" class="input input_hd J_title_color" name='{$vo.id}' id='thumb{$vo.id}' value='{$vo.yh_pdf}' placeholder="请上传银行开户附件，zip或rar格式">
									<a href='javascript:void(0);' onclick="flashupload('thumb_flie', '附件上传','thumb{$vo.id}',thumb_flie,'1,jpg|jpeg|gif|png|bmp|rar|zip,1,,,1','','','');return false;">
										附件上传</a>
									<input type="button" class="btn" onclick="$('#thumb{$vo.id}').val('');return false;" value="取消附件">
								</div>
							</td>
							<td>
										<a href="{:leuu('Ptxq/IndexAdmin/del_pt_yh',array('id'=>$vo['id']))}" class="btn-primary" style="padding: 4px 5px;margin: 6px 0 0 0;display: block;width: 27px;">删除</a>
							</td> 
						  </tr>
						</foreach>
						</tbody>
					</table>
				</div>
			</div>
			<div class="form-actions">
				<button class="btn btn-primary btn_submit J_ajax_submit_btn" type="submit">提交</button>
				<a class="btn" href="javascript:history.go(-1);">返回</a>
			</div>
		</form>
		<form name="myform" id="myform" action="{:leuu('Ptxq/IndexAdmin/add_pt_yh')}" method="post" class="form-horizontal J_ajaxForms" enctype="multipart/form-data">

			<div class="col-auto">
				<div class="table_full">
					<table class="table table-bordered">
						<tr>
							<td width="200">
								<input type="hidden" name="pt_id" id="pt_id" value="{$rs.id}" />
								<select style="max-height: 100px;" name="yh_id">
								<foreach name="yh" item="vo">
								    <option value="{$vo.id}">{$vo.name}</option>
								</foreach>
								
							</td>
							<td>
								<button class="btn btn-primary btn_submit J_ajax_submit_btn" type="submit">添加</button>
							</td>
						</tr>

						</tbody>
					</table>
				</div>
			</div>
			
		</form>
	</div>
	<script type="text/javascript" src="__ROOT__/public/js/common.js"></script>
	<script type="text/javascript" src="__ROOT__/public/js/content_addtop.js"></script>

</body>

</html>